﻿<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>骨医快线</title>
    <link rel="stylesheet" href="../../css/mui.plus.css" />
    <style>
    	.mui-grid-view.mui-grid-9 .mui-table-view-cell,.mui-grid-view.mui-grid-9 {
        	border: none;
        } 
        .pat-list1 {
        	width: 30vw;
        	vertical-align: center;
        	text-align: center;
        }
        .pat-list1 span:first-child {
        	font-size: 15px;
        }
        span.c2{
        	font-size: 12px;
        	color: #999;
        }
        .mui-table-view.oe-media1 {
        	background-color: #f5f5f5;
        }
        .mui-table-view.oe-media1:before, .mui-table-view.oe-media1:after {
        	height: 0;
        }
        .pat-txt {
        	padding-top: 10px;
        	text-align: center;
        	font-size: 12px;
        	color: #ff924e;
        }
        .pat-chat, .pat-chat-disabled {
			padding: 0 3px !important;
			border: 1px solid #30B497;
			border-radius: 3px;
			font-size: 12px;
			color: #30b497;
		}
		.pat-chat-disabled {
			border: 1px solid #999;
			color: #999;
		}
		.mui-popover {
        	height: 44px;
        	background-color: transparent;
        	box-shadow: none;
        }
        .mui-popover ul {
        	width: 120px;
        	left: 160px;
        	text-align: left;
        }
        .mui-icon.mui-icon-trash {
        	color: #30B497;
        }
        .pat-scale.mui-navigate-right:after {
        	content: '\e468';
        	font-size: 30px;
        	color: #30B497;
        	font-weight: bold;
        }
        .pat-scale-node:before,
        .pat-scale-node:after {
        	height: 0;
        }
        .pat-scale-node {
        	margin-left: 15px;
        	width: 60vw;
        	color: #999;
        	background-color: #f5f5f5;
        }
        .pat-scale-node span:first-child {
        	display: inline-block;
        	max-width: 65%;
        	overflow: hidden;
        	-ms-text-overflow: ellipsis;
        	text-overflow: ellipsis;
        	white-space: nowrap;
        }
        .mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell {
        	padding-left: 15px;
        }
        .mui-table-view-cell.mui-collapse .mui-table-view .mui-table-view-cell:after {
        	left: 0;
        }.
        li.mui-table-view-cell.mui-collapse.mui-active {
        	padding-top: 0!important;
        }
        .mui-table-view-cell.mui-collapse .mui-collapse-content {
        	padding: 0;
        }
        .mui-table-view-cell.mui-collapse .mui-collapse-content>* {
        	padding: 0 15px;
        }
        .pat-rec.mui-navigate-right:after {
        	position: relative;
        	top: 8px;
        	left: 8px;
        }
        .mui-navigate-right.pat-rec {
        	text-align: center;
        	color: #666!important;
        }
		.mui-table-view-cell.mui-collapse .mui-table-view:before, .mui-table-view-cell.mui-collapse .mui-table-view:after {
			height: 1px;
		}    
		.mui-table-view-cell.mui-collapse .mui-table-view {
			margin: 0 -15px;
		}
		.mui-table-view-cell.mui-collapse .no-ml {
			padding:15px 15px 0 15px;
			background-color: #fff;
		}
		.label-pri {
			position: relative;
			left: -15px;
			padding: 5px 10px 5px 20px;
			border-radius: 0 10px 10px 0;
			font-size: 16px;
			color: #fff;
			background-color: #30B497;
		}
    </style>
</head>
<body>
	<header class="mui-bar mui-bar-nav pri-bar">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	    <a id="menu" class="mui-action-menu mui-icon mui-icon-bars mui-pull-right" href="#topPopover"></a>
	    <h1 class="mui-title">随访详情</h1>
	</header>
	
    <div class="mui-content oe-interview">
    	<!--<ul id="recList" class="mui-table-view"> 
        	<li class="mui-table-view-cell mui-collapse">
       			<div class="mui-collapse-content">
       			 	<ul class="mui-table-view">
						<li class="mui-table-view-cell">
			                <span>姓名</span>
			                <span class="mui-pull-right" data-name="rec_name">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>手机号</span>
			                <span class="mui-pull-right" data-name="rec_name">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>性别</span>
			                <span class="mui-pull-right" data-name="rec_sex">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>年龄</span>
			                <span class="mui-pull-right" data-name="rec_age">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>床号</span>
			                <span class="mui-pull-right" data-name="rec_bed_no">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>住院号</span>
			                <span class="mui-pull-right" data-name="rec_hospital_no">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>诊断</span>
			                <span class="mui-pull-right" data-name="rec_diagnosis">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>手术名称</span>
			                <span class="mui-pull-right" data-name="rec_surgery_name">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>手术时间</span>
			                <span class="mui-pull-right" data-name="rec_surgery_date">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>备注</span>
			                <span class="mui-pull-right" data-name="rec_memo">加载中...</span>
			            </li>        
			            <li class="mui-table-view-cell">
			                <span>复查内容</span>
			                <span class="mui-pull-right" data-name="rec_memo">加载中...</span>
			            </li>
			        </ul>
       			</div>
       			<a class="mui-navigate-right pat-rec" href="#">病历</a>
    		</li>
        </ul>-->
        
        <ul class="mui-table-view" style="padding-top: 15px;">
			<li class="mui-table-view-cell">
				<span class="label-pri">病历详情</span>
			</li>  
			<li class="mui-table-view-cell">
				<span>姓名</span>
                <span id="panel-name" class="mui-pull-right" data-name="rec_name">加载中...</span>
			</li>
			<li class="mui-table-view-cell">
				<span>诊断</span>
                <span id="panel-diag" class="mui-pull-right" data-name="rec_name">加载中...</span>
			</li>
            <li class="mui-table-view-cell mui-collapse">
                <a id="btn-med-rec" class="mui-navigate-right pat-rec" href="#">展开病历</a>
                <div class="mui-collapse-content">
                    <ul id="recList" class="mui-table-view">
						<!--<li class="mui-table-view-cell">
			                <span>姓名</span>
			                <span class="mui-pull-right" data-name="rec_name">加载中...</span>
			            </li>-->
			            <li class="mui-table-view-cell">
			                <span>手机号</span>
			                <span class="mui-pull-right" data-name="rec_name">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>性别</span>
			                <span class="mui-pull-right" data-name="rec_sex">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>年龄</span>
			                <span class="mui-pull-right" data-name="rec_age">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>床号</span>
			                <span class="mui-pull-right" data-name="rec_bed_no">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>住院号</span>
			                <span class="mui-pull-right" data-name="rec_hospital_no">加载中...</span>
			            </li>
			            <!--<li class="mui-table-view-cell">
			                <span>诊断</span>
			                <span class="mui-pull-right" data-name="rec_diagnosis">加载中...</span>
			            </li>-->
			            <li class="mui-table-view-cell">
			                <span>手术名称</span>
			                <span class="mui-pull-right" data-name="rec_surgery_name">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>手术时间</span>
			                <span class="mui-pull-right" data-name="rec_surgery_date">加载中...</span>
			            </li>
			            <li class="mui-table-view-cell">
			                <span>备注</span>
			                <span class="mui-pull-right" data-name="rec_memo">加载中...</span>
			            </li>        
			            <li class="mui-table-view-cell">
			                <span>复查内容</span>
			                <span class="mui-pull-right" data-name="rec_memo">加载中...</span>
			            </li>
			        </ul>
			                
			        <div class="oe-divide-block"></div>
			        
			        <!--手术期照片-->
			        <div class="no-ml">
			            <div style="overflow: hidden;">
			            	<span>添加手术期照片</span>
			            </div>
			
			            <ul class="mui-table-view mui-grid-view mui-grid-9 oe-img-upload" style="background-color: #fff;">
			                <li class="mui-table-view-cell mui-media mui-col-xs-4">
			                    <a href="###" id="qn1">
			                        <div class="mui-media-body">术前</div>
			                        <img id="qnImg1" class="oe-img-add"></img>
			                        <div id="qnTxt1" class="mui-media-body" style="font-size: 12px;">(已上传0张)</div>
			                    </a>
			                </li>
			                <li class="mui-table-view-cell mui-media mui-col-xs-4">
			                    <a href="###" id="qn2">
			                        <div class="mui-media-body">术中</div>
			                        <img id="qnImg2" class="oe-img-add"></img>
			                        <div id="qnTxt2" class="mui-media-body" style="font-size: 12px;">(已上传0张)</div>
			                    </a>
			                </li>
			                <li class="mui-table-view-cell mui-media mui-col-xs-4">
			                    <a href="###" id="qn3">
			                        <div class="mui-media-body">术后</div>
			                        <img id="qnImg3" class="oe-img-add"></img>
			                        <div id="qnTxt3" class="mui-media-body" style="font-size: 12px;">(已上传0张)</div>
			                    </a>
			                </li>
			            </ul>
			
			        </div>
			        
			        <div class="oe-divide-block"></div>
			        
			        <!--添加量表-->
			    	<ul class="mui-table-view">
			    		<li id="btn-scale" class="mui-table-view-cell" data-page="../scale/home-rec.html">
			            <a class="mui-navigate-right pat-scale">
							添加量表
			            </a>
			        	</li>
			    	</ul>
			        
			        <ul id="list-scale" class="mui-table-view">
			    	</ul>
			    	
			    	<script id="tmp-scale" type="text/html">
						{{each scale as v i}}
							<li class="mui-table-view-cell" data-rec = "{{v.rec_id}}">
								<div class="mui-slider-right mui-disabled">
									<a class="mui-btn mui-btn-red" style="transform: translate(0px, 0px);" data-rec = "{{v.rec_id}}">删除</a>
								</div>
								<div class="mui-slider-handle" style="transform: translate(0px, 0px);">
									<span>{{v.rs_name}}</span>
					                <span class="mui-pull-right">{{v.rec_ctime}}</span>
								</div>
					        </li>
						{{/each}}
					</script>
                </div>
            </li>
        </ul>
        
        <div class="oe-divide-block"></div>
        
        <!--<ul class="mui-table-view">
	        <li id="btn-scale" class="mui-table-view-cell" data-page="../scale/home.html">
	            <a class="mui-navigate-right pat-scale">
					为患者分配量表
	            </a>
	        </li>
	    </ul>-->
        

        <div style="background-color: #fff;">
        	<div class="pat-txt">如果患者不方便当面复诊，可尝试在线随访</div>
            <div class="oe-title" id = "chat-box">
                <span class="label-pri">术后管理</span>
            </div>
             <script id="tmp-chat" type="text/html">
	        	<span id="chat" class="mui-pull-right {{isBind ? 'pat-chat' : 'pat-chat-disabled'}}">立即沟通</span>
	        </script>
            <ul class="mui-table-view">
		        <li id="btn-scale" class="mui-table-view-cell" data-page="../scale/home.html">
		            <a class="mui-navigate-right pat-scale">
						为患者分配量表
		            </a>
		        </li>
		    </ul>
            <div id="edList">
            	<div class="oe-emp">
            		<img src="../../images/blank_page/pub.png"/>
            	</div>
            </div>
        </div>
    </div>
    <div id="topPopover" class="mui-popover">
		<div class="mui-popover-arrow"></div>
		<ul class="mui-table-view">
			<li id="btnDelete" class="mui-table-view-cell">
				<a href="#">
					<span class="mui-icon mui-icon-trash"></span>
					<span>删除</span>
				</a>
			</li>
		</ul>
	</div>

    <script src="../../js/mui.min.js"></script>
    <script src="../../js/app.js"></script>
	<script src="../../js/lib/template.js"></script>
	<script src="../../js/lib/moxie.js"></script>
    <script src="../../js/lib/plupload.dev.js"></script>
	<script src="../../js/lib/qiniu.min.js"></script>
	<script id="tmp-rec" type="text/html">
		{{each list as v i}}
            <li class="mui-table-view-cell">
                <span>手机号</span>
                <span class="mui-pull-right" data-name="rec_name">{{v.fo_patient_mobile}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>性别</span>
                <span class="mui-pull-right" data-name="rec_sex">{{v.rec_sex}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>年龄</span>
                <span class="mui-pull-right" data-name="rec_age">{{v.rec_age}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>床号</span>
                <span class="mui-pull-right" data-name="rec_bed_no">{{v.rec_bed_no}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>住院号</span>
                <span class="mui-pull-right" data-name="rec_hospital_no">{{v.rec_hospital_no}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>手术名称</span>
                <span class="mui-pull-right" data-name="rec_surgery_name">{{v.rec_surgery_name}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>手术时间</span>
                <span class="mui-pull-right" data-name="rec_surgery_date">{{v.rec_surgery_date}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>备注</span>
                <span class="mui-pull-right" data-name="rec_memo">{{v.rec_memo}}</span>
            </li>
            <li class="mui-table-view-cell">
                <span>复查内容</span>
                <span class="mui-pull-right" data-name="rec_memo">{{v.fo_review_content}}</span>
            </li>
		{{/each}}
	</script>
	<script id="after-sur" type="text/html">
		<table>
		{{each data as v i}}
            {{if v.fr_rs_id}}
		        <tr style="height: 90px;" data-type="update">
		            <td class="pat-list1">
		                <span>{{v.node}}</span><br />
		                <span class="c2">{{v.post_surgery_date}}</span>
		            </td>
		        	<td class="pat-list2">
		                <ul class="mui-table-view  pat-scale-node">
		                    <li class="mui-table-view-cell" data-type = "scale" data-rs="{{v.fr_rs_id}}" data-status = "{{v.dr_feedback}}" data-sc="{{v.rs_record_id}}" data-index="{{i}}">
		                        <a>
		                            <span>{{v.fr_name}}</span>
		                            <span class="mui-pull-right">{{v.dr_feedback}}</span>
		                        </a>
		                    </li>
		                </ul>
		            </td>
		    	</tr>
            {{else}}
	            <tr style="height: 150px;" data-type="update">
		            <td class="pat-list1">
		                <span>{{v.node}}</span><br />
		                <span class="c2">{{v.post_surgery_date}}</span>
		            </td>
		            <td class="pat-list2">
		                <ul class="mui-table-view oe-media1" id="list_wrap">
		                    <li class="mui-table-view-cell mui-media" style="width: 65vw;" data-index="{{i}}">
		                        <a href="javascript:;">
		                            <img class="mui-media-object mui-pull-left" src="{{v.first_img}}?imageView2/1/w/150/h/150/interlace/1">
		                            <div class="mui-media-body">
		                                <p>{{v.dr_feedback}}</p>
		                            </div>
		                        </a>
		                    </li>
		                </ul>
		            </td>
		    	</tr>
            {{/if}}
        {{/each}}
        </table>
	</script>
    <script>
        (function ($, doc) {
        	var uploadFlag = 0;
        	var recId,foId,paId,
        		tempData = {
        			list : [],
    			},
		        dataToScale = {module: 'FO', branch: 'DETAIL'}; // 传往量表首页的数据
        	var picNum, picList1, picList2, picList3;
        	var recList = document.getElementById("recList"),
        		chatBox = document.getElementById("chat-box");
        		
        	 $('.mui-content').on('tap', '#btn-scale', function(){
            	var self = this;
            	
            	$.openWindow({
            		url: this.dataset.page,
            		waiting: {
            			autoShow: false
            		},
            		extras: {
            			dataFromOpener: dataToScale,
            			rec_id: recId
            		}
            	});
            });
            
            $('.mui-content').on('tap', '#btn-med-rec', function(){
            	if(this.innerHTML === '展开病历'){
            		this.innerHTML = '收起病历';
        		}else {
        			this.innerHTML = '展开病历'; 
        		}
            });
            
            var getScaleListByMedId = function(medId){
				app.net.get('c_rating_scale_record/show_list', {med_id: medId}, function(data){
					if(data && data.code === '100'){
						tempData.scale = data.data;
						var html = template('tmp-scale', tempData);
						document.getElementById("list-scale").innerHTML = html;
					}
				});
			}
            
            $('#list-scale').on('tap','li', function(){
	            	var transData = {
	            		sc_rec_id : this.dataset.rec,
	            		rec_id: recId
	            	};
	            	
	            	$.openWindow({
	            		url: '../scale/detail-rec-res.html',
	            		waiting: {
	            			autoShow: false
	            		},
	            		extras: {
	            			transId: transData
	            		}
	            	});
	            });
        	
            $.plusReady(function () {
                var wv = plus.webview.currentWebview();
                dataToScale.startPageId = wv.id;
                
                paId    = wv.pa_id;
                foId    = wv.fo_id;
                recId   = wv.rec_id;
                foStage = wv.fo_stage;
                
                dataToScale.foId = foId;
                getScaleListByMedId(recId);
                
                // 红点处理
                app.net.post('c_followup/update', {fo_id: foId}, function(data){
                	
                });
                // 更改返回逻辑
            	$.back = function(){
            		$.openWindow({
            			id: 'main'
            		});
            		wv.close('slide-out-left');
            	}
                
                tempData.isBind = (paId === '' ? false : true);
                var subInterview = $.preload({
                    "id": 'subInterview',
                    "url": 'detail-sub.html'
                });
                
                // 渲染立即沟通按钮
                chatBox.innerHTML += template('tmp-chat', tempData);
				
				// 病历信息
				app.net.get('c_med_record/show', {rec_id : recId}, function(data){
					if(data && data.code == 100){
						tempData.list[0] = data.data;
						document.getElementById("panel-name").innerHTML =  data.data.rec_name;
						document.getElementById("panel-diag").innerHTML =  data.data.rec_diagnosis || '尚未填写';
						var html = template('tmp-rec', tempData);
						recList.innerHTML = html;
					}
				});
				
				// 图片信息
                app.net.get('c_med_record/show_surgery_pic_info_by_rec_id', {rec_id: recId}, function(data){
                	var res = data.data;
                	if(data && data.code != 100){
            			document.getElementById("qnTxt3").innerHTML = '(已上传0张)';
		            	document.getElementById("qnImg3").src = '1';
		            	document.getElementById("qnTxt2").innerHTML = '(已上传0张)';
		            	document.getElementById("qnImg2").src = '1';
		            	document.getElementById("qnTxt1").innerHTML = '(已上传0张)';
		            	document.getElementById("qnImg1").src = '1';
		            	return;
                	}
                	for(var i = 0; i < res.length; i++){
                		switch(res[i].spic_stage){
                    		case 'PRE_OP':
                				document.getElementById("qnTxt1").innerHTML = '(已上传' + res[i].spic_num + '张)';
					            document.getElementById("qnImg1").src = res[i].spic_src + '?imageView2/1/w/150/h/150';
                    			break;
                    		case 'MID_OP':
                    			document.getElementById("qnTxt2").innerHTML = '(已上传' + res[i].spic_num + '张)';
					            document.getElementById("qnImg2").src = res[i].spic_src + '?imageView2/1/w/150/h/150';
                    			break;
							case 'POST_OP':
								document.getElementById("qnTxt3").innerHTML = '(已上传' + res[i].spic_num + '张)';
					            document.getElementById("qnImg3").src = res[i].spic_src + '?imageView2/1/w/150/h/150';
								break;
							default:
								break;
                		}
                	}
                });
                
                
                // 随访节点信息
                app.net.get('c_followup/show_post_surgery_list_by_rec_id',{rec_id : recId},function(data){
                	if(data && data.code == 100){
                		tempData = data;
                		var html = template('after-sur', tempData);
                		document.getElementById("edList").innerHTML = html;
                		
	            		$('#edList').on('tap', 'li', function(){
		                	if(this.dataset.type === "scale"){
		                		if(this.dataset.status === '未填写'){
		                			$.toast('该量表患者尚未填写');
		                		}else {
		                			var id = {
		                				rec_id: recId,
		                				sc_rec_id: this.dataset.sc
		                			}
		                			$.openWindow({
										url: '../scale/detail-rec-res.html',
										waiting: {
											autoShow: false
										},
										extras: {
											transId: id
										}
									});
		                		}
		                	}else{
		                		var transData = data.data[this.dataset.index];
		                    	transData.rec_id = recId;
		                    	transData.fo_id = foId;
		                		
		                        $.fire(subInterview, 'subInterview', transData);
		                        $.openWindow({
		                            id: 'subInterview',
		                            show: {
		                                aniShow: 'pop-in'
		                            },
		                            waiting: {
		                                autoShow: false
		                            }
		                        });
		                	}
		                });
//              		var trs = document.querySelectorAll("#edList tr");
//		                for (var i = 0; i < trs.length; i++) {
//		                	var dataList = data;
//		                    var cur = trs[i];
//		                    cur.addEventListener("tap", function () {
//		                    	if(cur.dataset.type === 'scale'){
//		                    		alert(1)
//		                    	}else{
//			                    	var transData = dataList.data[this.dataset.index];
//			                    	transData.rec_id = recId;
//			                    	transData.fo_id = foId;
//			                        $.fire(subInterview, 'subInterview', transData);
//			                        $.openWindow({
//			                            id: 'subInterview',
//			                            show: {
//			                                aniShow: 'pop-in'
//			                            },
//			                            waiting: {
//			                                autoShow: false
//			                            }
//			                        });
//		                    	}
//		                    });
//		                }
                	}
                });
                
                
//              var photoList = photoList = $.preload({
//              	id  : 'photo-list',
//              	url : '../helper/photo-list.html'
//              })
                
                $('.mui-content').on('tap', '#qn1', function(){
//					$.fire(photoList, 'transPhotoInfo', {spic_rec_id: recId, spic_stage: 'PRE_OP'});
					$.openWindow({
						url : '../helper/photo-list.html',
						waiting : {
							autoShow : false
						},
						extras : {
							spic_rec_id: recId, 
							spic_stage: 'PRE_OP'
						}
					});
				})
				
				$('.mui-content').on('tap', '#qn2', function(){
//					$.fire(photoList, 'transPhotoInfo', {spic_rec_id: recId, spic_stage: 'MID_OP'});
					$.openWindow({
						url : '../helper/photo-list.html',
						waiting : {
							autoShow : false
						},
						extras : {
							spic_rec_id: recId, 
							spic_stage: 'MID_OP'
						}
					});
				})
				
				$('.mui-content').on('tap', '#qn3', function(){
//					$.fire(photoList, 'transPhotoInfo', {spic_rec_id: recId, spic_stage: 'POST_OP'});
					$.openWindow({
						url : '../helper/photo-list.html',
						waiting : {
							autoShow : false
						},
						extras : {
							spic_rec_id: recId, 
							spic_stage: 'POST_OP'
						}
					});
				})

				$('.mui-content').on('tap', '#chat', function(){
					if(/disabled/.test(this.classList)) return;
					
					$.openWindow({
						url : '../common/chat.html',
						waiting : {
							autoShow : false
						},
						extras : {
							pa_id : paId,
							rec_id: recId
						}
					});
						
				});
				
				var btnArray = ['确认', '取消'];
				$('body').on('tap', '#btnDelete', function(){
					if(foStage === 'BD'){
                		plus.nativeUI.toast('已绑定患者无法删除');
                		return;
                	}
					
					$.confirm('确认删除该随访记录？', '骨医快线', btnArray, function(e) {
						if (e.index == 0) {
							app.net.post('c_followup/delete', {fo_id : foId}, function(data){
								if(data && data.code == 100){
									plus.nativeUI.toast('删除成功');
									app.bc();
									$.back();
								}
							});
						} else {
							// 取消按钮相关逻辑
						}
					});
				});
				
           });
           
        }(mui, document));
    </script>
</body>
</html>